package com.oa.ylms.apps.dao.notice;

import java.util.List;

import com.oa.ylms.apps.entity.notice.NoticeInfoValue;

public interface INoticeInfoDao {

	public boolean deleteNoticeInfo(NoticeInfoValue noticeInfo) throws Exception;

	public int addNoticeInfo(NoticeInfoValue noticeInfo) throws Exception;
	
	public NoticeInfoValue queryNoticeInfoByNoticeId(int noticeId);
	
	public List<NoticeInfoValue> queryNoticeInfoWithPage( NoticeInfoValue noticeInfo,int rows, int pageNo) throws Exception;

	public List<NoticeInfoValue> queryTipWithPage(int sectionId, int staffId, NoticeInfoValue noticeInfo,int rows, int pageNo) throws Exception;

	public List<NoticeInfoValue> queryNoticeInfoByStaffIdWithPage(int staffId,NoticeInfoValue noticeInfo,int rows, int pageNo) throws Exception;

	public List<NoticeInfoValue> queryTip() throws Exception;
	
	public int countTpages(NoticeInfoValue noticeInfo,int rows) throws Exception;
	
	public int countTpagesByTip(int sectionId, int staffId, NoticeInfoValue noticeInfo, int rows) throws Exception;

	public int countTpagesByStaffId(int staffId, NoticeInfoValue noticeInfo, int rows)throws Exception;

	public int getTotalNumber() throws Exception;
}
